package com.wsp.apimanagement.util;

import com.wsp.apimanagement.pojo.dto.Result;

/**
 * Package: com.wsp.apimanagement.util
 * Description： TODO
 *
 * @Author: 巫思平
 * Copyright: Copyright (c) 2020
 * Version: 1
 */
public final class CommonResultBuilderUtil {

    public static<T> Result<T> commonError(String error) {
        return Result.<T>builder().code(404).msg(error).build();
    }

    public static<T> Result<T> commonSuccess(String success) {
        return Result.<T>builder().code(200).msg(success).build();
    }
}
